package com.dwms.feign.declare;

import com.dwms.entity.ListRequest;
import com.dwms.entity.PageResponse;
import com.dwms.entity.QueryRequest;
import com.dwms.entity.Result;
import com.dwms.entity.declare.jeInbound.request.JeInboundImportRequest;
import com.dwms.entity.declare.jeInbound.request.JeInboundQueryRequest;
import com.dwms.entity.declare.jeInbound.response.JeInboundResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName: JeInboundController
 * @Description: JeInbound
 * @Create 2025-09-28 20:47:56
 * @Author WH
 * @Since 1.0.0
**/
@FeignClient(name = "declare-server", path = "/jeInbound")
public interface JeInboundFeignClient {

    /**
     * 保存
     *
     * @param query
     *          请求参数
     * @return
     */
    @PostMapping("/confirm")
    Result confirm(@RequestBody QueryRequest query);

    /**
     * 分页查询
     *
     * @param query
     *          查询参数
     * @return
     */
    @PostMapping("/findPage")
    Result<PageResponse<JeInboundResponse>> findPage(@RequestBody JeInboundQueryRequest query);

    /**
     *  根据ID查询
     *
     * @param query
     *          参数
     * @return
     */
    @PostMapping("/findById")
    Result findById(@RequestBody QueryRequest query);

    /**
     * 删除
     *
     * @param query
     *          参数
     * @return
     */
    @PostMapping("/delete")
    Result delete(@RequestBody QueryRequest query);

    /**
     * 导入金二账册
     * @param listRequest
     * @return
     */
    @PostMapping("/importExcel")
    Result importExcel(@RequestBody ListRequest<JeInboundImportRequest> listRequest);
}
